package com.ruoyi.project.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;

import java.math.BigDecimal;

/**
 * 账户变动记录表 t_account_annal
 * 
 * @author ruoyi
 * @date 2018-11-01
 */
public class AccountAnnal extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	private Long accountAnnalId;
	/** 账户编号 */
	private Long accountId;
	/** 用户编号 */
	private Long userId;
	/** 操作类型 */
	private String operType;
	/** 余额 */
	private BigDecimal balance;
	/** 可用余额 */
	private BigDecimal availableBalance;
	/** 操作后余额 */
	private BigDecimal balanceAfter;
	/** 操作后可用余额 */
	private BigDecimal availableBalanceAfter;
	/** 冲减 */
	private Integer type;
	/** 备注 */
	private String remark;

	public void setAccountAnnalId(Long accountAnnalId) 
	{
		this.accountAnnalId = accountAnnalId;
	}

	public Long getAccountAnnalId() 
	{
		return accountAnnalId;
	}
	public void setAccountId(Long accountId) 
	{
		this.accountId = accountId;
	}

	public Long getAccountId() 
	{
		return accountId;
	}
	public void setUserId(Long userId) 
	{
		this.userId = userId;
	}

	public Long getUserId() 
	{
		return userId;
	}
	public void setOperType(String operType) 
	{
		this.operType = operType;
	}

	public String getOperType() 
	{
		return operType;
	}
	public void setBalance(BigDecimal balance) 
	{
		this.balance = balance;
	}

	public BigDecimal getBalance() 
	{
		return balance;
	}
	public void setAvailableBalance(BigDecimal availableBalance) 
	{
		this.availableBalance = availableBalance;
	}

	public BigDecimal getAvailableBalance() 
	{
		return availableBalance;
	}
	public void setBalanceAfter(BigDecimal balanceAfter) 
	{
		this.balanceAfter = balanceAfter;
	}

	public BigDecimal getBalanceAfter() 
	{
		return balanceAfter;
	}
	public void setAvailableBalanceAfter(BigDecimal availableBalanceAfter) 
	{
		this.availableBalanceAfter = availableBalanceAfter;
	}

	public BigDecimal getAvailableBalanceAfter() 
	{
		return availableBalanceAfter;
	}
	public void setType(Integer type) 
	{
		this.type = type;
	}

	public Integer getType() 
	{
		return type;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("accountAnnalId", getAccountAnnalId())
            .append("accountId", getAccountId())
            .append("userId", getUserId())
            .append("operType", getOperType())
            .append("balance", getBalance())
            .append("availableBalance", getAvailableBalance())
            .append("balanceAfter", getBalanceAfter())
            .append("availableBalanceAfter", getAvailableBalanceAfter())
            .append("type", getType())
            .append("remark", getRemark())
            .toString();
    }
}
